<?php

//note how none of these "echo" anything. they only return values.
//this is so we can separate business from design.

function getBasic(){
	return array("foo" => "bar", "wut" => "up");
}


function getComplex($name){
	
	$people = array(
		"keane" => array(
			"age" => 25,
			"country" => "canada"
		),
		"charles" => array(
			"age" => 24,
			"country" => "canada"
		)
	);
	
	if(array_key_exists($name, $people)){
		return array("success", $people[$name]);
	}
	else {
		return array("fail");
	}
}

?>